// =====================================================================================
// M8Pim: Provide a convenient way to manage personal information on Meizu M8.
// Copyright (C)  2009  tiger.lee  http://tigerlee.me
// 
// GNU General Public Licence:
// ---------------------------
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or any
// later version.
// 
// This program is distributed in the hope that it will be useful,
//      but WITHOUT ANY WARRANTY; without even the implied warranty of
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.
// 
//      You should have received a copy of the GNU General Public License
//      along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// =====================================================================================

// =====================================================================================
//     Filename: PimStructs.h
//  Description: 
//
//       Create: 12/02/09 19:08:52
//       Author: tiger.lee
//        Email: i.m.tiger.lee(at)gmail.com
//      Website: http://tigerlee.me
//
//      Project: http://code.google.c/p/m8pim/
//   Bug Report: http://code.google.com/p/m8pim/issues/list
// =====================================================================================

#pragma once

#include "PimDef.h"

struct CPimRect
{
	int x0;
	int y0;
	int x1;
	int y1;
	CPimRect() : x0(0), y0(0), x1(0), y1(0) {}
	CPimRect(int _x0, int _y0, int _x1, int _y1) : x0(_x0), y0(_y0), x1(_x1), y1(_y1) {}
	inline int GetWidth() { return x1 - x0; }
	inline int GetHeight() { return y1 - y0; }
};

struct CPimSize
{
	int width;
	int height;
	CPimSize() : width(0), height(0) {}
	CPimSize(int w, int h) : width(w), height(h) {}
	const CPimSize& operator=(const CPimSize& size)
	{
		width  = size.width;
		height = size.height;
		return *this;
	}
};

class CPimConfig
{
	public:
		CPimConfig();
		CPimString		m_strMainWndBannerPath;
		CPimSize		m_sizeMainWndBanner;
};

//=====================================================================================
// vim: ft=cpp tabstop=4 shiftwidth=4
